package com.kac.controller;

import com.kac.service.KacProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author  Qilin
 * @date  2019-01-16
 */
@RestController
public class KacProductController {

    @Autowired
    public KacProductService kacProductService;

    @GetMapping("/product/save")
    public String save(){
            kacProductService.save();
            return "success";
    }


    @GetMapping("/test")
    public String test(){
        return kacProductService.test();
    }
}
